﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using Sisocana.Core.Models;
using Sisocana.Core.Interfaces;
using Sisocana.Core;

namespace SisocanaFronEnd.Controllers
{
    public class RecursosController : Controller
    {
        public void Imagen(int id)
        {
            SiteService _siteService = new SiteService();
            SiteModel sit = _siteService.GetSingle(c => c.id == id);
            Response.ContentType = sit.logoExt;
            Response.BinaryWrite(sit.logo);
        }

    }
}
